const list=[
    //地址为空时跳转home页面
    { path: '', redirect: '/home' },
    //首页城市列表页
    { path: '/home',name:'home', component: ()=>import('../pages/home/home') },
    { path: '/city/:id', name:'city', component: ()=>import('../pages/city/city')},
    { path: '/msite' ,name:'msite' , meta:{keepAlive:true} ,component: ()=>import('../pages/msite/msite')},
    { path: '/food' ,name:'food' ,component: ()=>import('../pages/food/food')},
    { path: '/shop' ,name:'shop' ,component: ()=>import('../pages/shop/shop'),
        children:[
            {
                path: 'shopDetail' ,name:'shopDetail' ,component: ()=>import('../pages/shop/children/ShopDetail')
            }
        ]
    },
    { path: '/confirmOrder' ,name:'confirmOrder',meta:{auth:true} ,component: ()=>import('../pages/comfirmOrder/confirmOrder'),
        children:[
            {
                path:'chooseAddress',
                name:'chooseAddress',
                component: ()=>import('../pages/comfirmOrder/children/ChooseAddress'),
                children:[
                    {
                        path:'addAddress',
                        name:'addAddress',
                        component: ()=>import('../pages/comfirmOrder/children/children/addAddress'),
                        children:[
                            {
                                path:'searchAddress',
                                name:'searchAddress',
                                component: ()=>import('../pages/comfirmOrder/children/children/children/searchAddress'),
                                
                            }
                        ]
                    }
                ]
            },
            {
                path:'remark',
                name:'remark',
                component:()=>import('../pages/comfirmOrder/children/Remark')
            },
            {
                path:'payment',
                name:'payment',
                component:()=>import('../pages/comfirmOrder/children/Payment')
            }
        ]
    },
    { path: '/search/:geohash' ,name:'search' ,component: ()=>import('../pages/search/search')},
    { path: '/login' ,name:'login' ,component: ()=>import('../pages/login/login')},
    { path: '/order' ,name:'order' ,meta:{auth:true},component: ()=>import('../pages/order/order')},
    { path: '/profile' ,name:'profile' ,component: ()=>import('../pages/profile/profile'),
        children:[
            {
                path:'info',
                name:'info',
                component: ()=>import('../pages/profile/children/info'),
                children:[
                    {
                        path:'username',
                        name:'username',
                        component: ()=>import('../pages/profile/children/children/username'),
                    },
                    {
                        path:'address',
                        name:'address',
                        component: ()=>import('../pages/profile/children/children/address'),
                        children:[
                            {
                                path:'add',
                                name:'add',
                                component: ()=>import('../pages/profile/children/children/children/add'),
                                children:[
                                    {
                                        path:'addDetail',
                                        name:'addDetail',
                                        component: ()=>import('../pages/profile/children/children/children/children/addDetail'),
                                        
                                    }]
                            }]
                    }
                ]
            }
        ]
    },
    { path: '/forget' ,name:'forget' ,meta:{auth:true},component: ()=>import('../pages/forget/forget')},
    { path: '/balance' ,name:'balance' ,meta:{auth:true},component: ()=>import('../pages/balance/balance'),
        children:[
            {
                path:'detail',
                name:'detail',
                component: ()=>import('../pages/balance/children/detail'),
                
            }]
    },
    { path: '/benefit' ,name:'benefit' ,meta:{auth:true},component: ()=>import('../pages/benefit/benefit'),
        children:[
            {
                path:'hbDescription',
                name:'hbDescription',
                component: ()=>import('../pages/benefit/children/hbdescription'),
            },
            {
                path:'hbHistory',
                name:'hbHistory',
                component: ()=>import('../pages/benefit/children/hbHistory'),
            },
            {
                path:'exchange',
                name:'exchange',
                component: ()=>import('../pages/benefit/children/exchange'),
            },
            {
                path:'commend',
                name:'commend',
                component: ()=>import('../pages/benefit/children/commend'),
            }
    ]
    },
    { path: '/service' ,name:'service' , component: ()=>import('../pages/service/Service') ,
        children:[
            {
                path:'question',
                name:'question',
                component:()=>import('../pages/service/childern/Question')
            }
        ]    
    },
    { path: '/404' , component: ()=>import('../pages/error/ErrorPage')}
]
export default list;